Espressif Systems /ESP32-C6 /SPI0 /SPI_MEM_ECC_CTRL

Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text

Interpret as SPI_MEM_ECC_CTRL

31 2827 2423 2019 1615 1211 87 43 0 0 0 0 0 0 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0SPI_FMEM_ECC_ERR_INT_NUM 0 (SPI_FMEM_ECC_ERR_INT_EN)SPI_FMEM_ECC_ERR_INT_EN 0SPI_FMEM_PAGE_SIZE 0 (SPI_FMEM_ECC_ADDR_EN)SPI_FMEM_ECC_ADDR_EN 0 (SPI_MEM_USR_ECC_ADDR_EN)SPI_MEM_USR_ECC_ADDR_EN 0 (SPI_MEM_ECC_CONTINUE_RECORD_ERR_EN)SPI_MEM_ECC_CONTINUE_RECORD_ERR_EN 0SPI_MEM_ECC_ERR_BITS

Description

MSPI ECC control register

Fields

SPI_FMEM_ECC_ERR_INT_NUM

Set the error times of MSPI ECC read to generate MSPI SPI_MEM_ECC_ERR_INT interrupt.

SPI_FMEM_ECC_ERR_INT_EN

Set this bit to calculate the error times of MSPI ECC read when accesses to flash.

SPI_FMEM_PAGE_SIZE

Set the page size of the flash accessed by MSPI. 0: 256 bytes. 1: 512 bytes. 2: 1024 bytes. 3: 2048 bytes.

SPI_FMEM_ECC_ADDR_EN

Set this bit to enable MSPI ECC address conversion, no matter MSPI accesses to the ECC region or non-ECC region of flash. If there is no ECC region in flash, this bit should be 0. Otherwise, this bit should be 1.

SPI_MEM_USR_ECC_ADDR_EN

Set this bit to enable ECC address convert in SPI0/1 USR_CMD transfer.

SPI_MEM_ECC_CONTINUE_RECORD_ERR_EN

1: The error information in SPI_MEM_ECC_ERR_BITS and SPI_MEM_ECC_ERR_ADDR is updated when there is an ECC error. 0: SPI_MEM_ECC_ERR_BITS and SPI_MEM_ECC_ERR_ADDR record the first ECC error information.

SPI_MEM_ECC_ERR_BITS

Records the first ECC error bit number in the 16 bytes(From 0~127, corresponding to byte 0 bit 0 to byte 15 bit 7)

Links

() ()